package com.atguigu.ssyx.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class WgRequest {

    private Integer id;

    private String jsonrpc;

    private String method;

    private List<Params> params;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Params {

        @JsonProperty("设备序列号")
        private Integer sn;

        @JsonProperty("门号")
        private Integer gateId;

        /*@JsonProperty("模拟进出")
        private Integer inOrOut;

        @JsonProperty("模拟卡号")
        private Long cardId;*/
    }

}
